/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
array tipo float altura de personas
promedio
cuantas son mas altas que el promedio
cuantas mas bajas
 */

package tests;

/**
 *
 * @author luis
 */
public class Arraytest {

    /**
     *
     * @param args
     */
    public static void main(String[] args) {
        float[] lista = new float[5];
        float count = 0;
        int mayor = 0, menor = 0;
        for(int i = 0; i < 5; i++){
            lista[i] = Scan.Console.nextFloat();
            System.out.println(lista[i]);
            count +=lista[i];
        }
        for(float elemento : lista){
            if(elemento>count/lista.length) mayor++;
            if(elemento<count/lista.length) menor++;
        }
        System.out.println("media " + count/lista.length + "Menor " + menor + "mayor " + mayor);
        
    }
    
}
